
<!-- 用户信息 -->
<div class="tpl-sidebar-user-panel">
	<div class="tpl-user-panel-slide-toggleable">
		<div class="tpl-user-panel-profile-picture">
			<img src="${fileUrl!}${currentUser.icon!}" alt="" onclick="avatar_update()" onerror="javascript:this.src='${ctx!}/resource/amazeuiadmin/assets/img/user04.png';">
		</div>
		<span class="user-panel-logged-in-text"> <i
			class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
			${currentUser.name!}
		</span> 
		<!-- 
		<a href="javascript:;" class="tpl-user-panel-action-link"> 
		<span class="am-icon-pencil"></span> 账号设置
		</a>
		 -->
	</div>
</div>


<!-- 菜单 -->
<ul class="sidebar-nav">
<!-- 
	<li class="sidebar-nav-link">
	<a href="calendar.html"> 
		<i class="am-icon-calendar sidebar-nav-link-logo"></i> 资源列表
	</a>
	</li>
-->
	<#list menu as m>
		<#if m.pid == "">
		<li class="sidebar-nav-link">
		    <a href="javascript:;" class="sidebar-nav-sub-title <#if navLink?contains(m.key)>active</#if>">
		        <i class="${m.iconCls!} sidebar-nav-link-logo" ></i> ${m.name}
		        <span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico"></span>
		    </a>
		    <#list menu as m1>
		    	<#if m1.pid == m.id>
				    <ul class="sidebar-nav sidebar-nav-sub" <#if navLink?contains(m.key)>style="display: block;"</#if>>
				        <li class="sidebar-nav-link">
				            <a href="${ctx + m1.url}" <#if navLink?contains(m1.key)>class="sub-active"</#if>>
				                <span class="am-icon-angle-right sidebar-nav-link-logo"></span> ${m1.name}
				            </a>
				        </li>
				    </ul>
			    </#if>
		    </#list>
		</li>
		</#if>
	</#list>
</ul>